/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.caresms.service.http.Sms_MasterServiceSoap}.
 *
 * @author    cc
 * @see       com.caresms.service.http.Sms_MasterServiceSoap
 * @generated
 */
public class Sms_MasterSoap implements Serializable {
	public static Sms_MasterSoap toSoapModel(Sms_Master model) {
		Sms_MasterSoap soapModel = new Sms_MasterSoap();

		soapModel.setSmsId(model.getSmsId());
		soapModel.setCompanyId(model.getCompanyId());
		soapModel.setUserId(model.getUserId());
		soapModel.setSmsContent(model.getSmsContent());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setApproved_By(model.getApproved_By());
		soapModel.setIsActive(model.getIsActive());
		soapModel.setSms_chars_Size(model.getSms_chars_Size());
		soapModel.setField1(model.getField1());
		soapModel.setField2(model.getField2());
		soapModel.setField3(model.getField3());
		soapModel.setField4(model.getField4());
		soapModel.setField5(model.getField5());

		return soapModel;
	}

	public static Sms_MasterSoap[] toSoapModels(Sms_Master[] models) {
		Sms_MasterSoap[] soapModels = new Sms_MasterSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Sms_MasterSoap[][] toSoapModels(Sms_Master[][] models) {
		Sms_MasterSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Sms_MasterSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Sms_MasterSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Sms_MasterSoap[] toSoapModels(List<Sms_Master> models) {
		List<Sms_MasterSoap> soapModels = new ArrayList<Sms_MasterSoap>(models.size());

		for (Sms_Master model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Sms_MasterSoap[soapModels.size()]);
	}

	public Sms_MasterSoap() {
	}

	public long getPrimaryKey() {
		return _SmsId;
	}

	public void setPrimaryKey(long pk) {
		setSmsId(pk);
	}

	public long getSmsId() {
		return _SmsId;
	}

	public void setSmsId(long SmsId) {
		_SmsId = SmsId;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getSmsContent() {
		return _SmsContent;
	}

	public void setSmsContent(String SmsContent) {
		_SmsContent = SmsContent;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public long getApproved_By() {
		return _Approved_By;
	}

	public void setApproved_By(long Approved_By) {
		_Approved_By = Approved_By;
	}

	public boolean getIsActive() {
		return _isActive;
	}

	public boolean isIsActive() {
		return _isActive;
	}

	public void setIsActive(boolean isActive) {
		_isActive = isActive;
	}

	public int getSms_chars_Size() {
		return _Sms_chars_Size;
	}

	public void setSms_chars_Size(int Sms_chars_Size) {
		_Sms_chars_Size = Sms_chars_Size;
	}

	public String getField1() {
		return _field1;
	}

	public void setField1(String field1) {
		_field1 = field1;
	}

	public boolean getField2() {
		return _field2;
	}

	public boolean isField2() {
		return _field2;
	}

	public void setField2(boolean field2) {
		_field2 = field2;
	}

	public int getField3() {
		return _field3;
	}

	public void setField3(int field3) {
		_field3 = field3;
	}

	public Date getField4() {
		return _field4;
	}

	public void setField4(Date field4) {
		_field4 = field4;
	}

	public String getField5() {
		return _field5;
	}

	public void setField5(String field5) {
		_field5 = field5;
	}

	private long _SmsId;
	private long _companyId;
	private long _userId;
	private String _SmsContent;
	private Date _createDate;
	private long _Approved_By;
	private boolean _isActive;
	private int _Sms_chars_Size;
	private String _field1;
	private boolean _field2;
	private int _field3;
	private Date _field4;
	private String _field5;
}